import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
import set from '@dfeidao/atom-web/local/set';
export default async function a007(fd: IFeidaoAiBrowserComponent) {
	// todo
	const checkboxs = fd.data.node.querySelectorAll("[data-id='checkbox']");
	const check = [];
	for (let i = 0; i < checkboxs.length; i++) {
		const checkbox = checkboxs.item(i) as HTMLInputElement;
		if (checkbox.checked) {
			check.push(checkbox.getAttribute("data-temp"));
		}
	}
	if (check.length <= 0) {
		alert("请选择数据");
		return;
	}
	const msg = 0;

	console.log("KKKKKKKKKKKKKKKK=>", check);
	const id = check as string[];
	set(fd, 'id', id);
	console.log("KKKKKKKKKKKKKKKK=>", id);
	// fire("zj-000003", "a005", check);
}

